package com.jming.jike.service.backend;

import com.jming.jike.common.PageResult;
import com.jming.jike.dto.backend.DishDTO;
import com.jming.jike.vo.backend.DishDetailVO;
import com.jming.jike.vo.backend.DishVO;

/**
 * @author jinming.zhang
 * @version 0.0.1
 * @date 2022/04/16
 */
public interface DishService {

    /**
     * 插入菜品信息
     *
     * @param dishDTO
     * @return Boolean
     * @Author jinming.zhang
     * @Date 2022/4/20
     */
    Boolean insert(DishDTO dishDTO);

    /**
     * 修改菜品信息
     *
     * @param dishDTO
     * @return Boolean
     * @Author jinming.zhang
     * @Date 2022/4/22
     */
    Boolean update(DishDTO dishDTO);

    /**
     * 删除菜品信息
     *
     * @param id
     * @return Boolean
     * @Author jinming.zhang
     * @Date 2022/4/22
     */
    Boolean delete(Long id);

    /**
     * 分页查询菜品列表
     *
     * @param dishDTO
     * @return PageResult
     * @Author jinming.zhang
     * @Date 2022/4/22
     */
    PageResult<DishVO> pageQuery(DishDTO dishDTO);

    /**
     * 查询菜品详情
     *
     * @param id
     * @return DishDetailVO
     * @Author jinming.zhang
     * @Date 2022/4/22
     */
    DishDetailVO queryDetail(Long id);

    /**
     * 启/停售菜品
     *
     * @param id
     * @param status
     * @return Boolean
     * @Author jinming.zhang
     * @Date 2022/4/22
     */
    Boolean updateStatus(Long id, Integer status);
}
